<?php
class Home extends CI_Controller {
 
    public function __construct()
    {
        parent::__construct();
        $this->load->library('auth');
        $this->load->helper('global');
        $this->auth->user_logged_in();
    }
    
    public function index() {
        $session = session_data();
        if(!empty($session)) {
            redirect('admin/home');
        }
    }
    
    
}
?>